﻿@model Gueei.Gallery.Web.ViewModels.ImageEditViewModel
@using Gueei.Gallery.Web.Extensions
@{
	View.Title = "Image: " + Model.Name;
	Layout = "~/Views/Shared/_MasterLayout.cshtml";
}
@section Sidebar{
<h2>Name</h2>
<p>@Model.Name</p>
<h2>
    Description</h2>
<p>@Model.Description</p>
<h2>Tags</h2>
<ul class='imageTags'>
    @foreach (var t in Model.Tags)
    {
        <li>@Html.ActionLink(t, "Tag", "Browse", new { Name = t }, new { @class = "tag" })</li>
    }
</ul>
}
<div class='largeImagePreview'>
	<div class='imageContainer'>
		@Html.Image(Model)
	</div>
	<ul class="downloadImage">
		<li>@Html.ActionLink("Prev", "Previous", "Image")</li>
		<li>@Html.DownloadImageLink("Get Original Image", Model,
						 Gueei.Gallery.Core.DisplayProfiles.DefaultProfileName.Fullsize) </li>
	</ul>
</div>
